#include <iostream>

using namespace std;

int findNum(){
    int n = 1;
    while(!((n % 2 == 1) && (n %3==2) && (n % 5 == 4) && (n%6 ==5) && (n % 7 ==0))){
        n++;
    }
    cout<<"Count the stairs= "<<n<<endl;

    return 0;
}

int findNum2(){
    int n = 7;
    while(!((n % 2 == 1) && (n %3==2) && (n % 5 == 4) && (n%6 ==5) && (n % 7 ==0))){
        n += 7;
    }
    cout<<"Count the stairs= "<<n<<endl;

    return 0;
}

int main(){
    findNum2();
}